#ifndef __REACTOR_H__
#define __REACTOR_H__
#include<functional>
#include<event.h>
class Reactor
{
using event_callback_fun = void(*)(int, short int, void *);
public:
 Reactor();
 ~Reactor();
 void AddEventAndHander(int ,short int ,event_callback_fun,void * );
 void Loop();
private:
  struct event_base * reactor_;

};
#endif